﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MES.Server.IService
{
    /// <summary>
    /// 分页数据-统一返回的数据格式
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class PagingData<T> where T : class
    {
        /// <summary>
        /// 符号条件查询的数据总条数
        /// </summary>
        public int RecordCount { get; set; }

        /// <summary>
        /// 查询的第几页
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 每一页的数据数量 
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 当前页的数据源
        /// </summary>
        public List<T>? DataList { get; set; }
    }
}
